package com.alan.libapi.model.business;

import android.os.Parcelable;

import java.io.Serializable;

/**
 * @className: UserToken
 * @describtion: UserToken
 * @author: AlanWang
 * @email: 850267876@qq.com
 * @time: 2016/4/18 11:19
 */
public class UserToken implements Serializable {

    /**
     *  验证成功的用户ID
     */
    private int userId;
    /**
     * 身份验证成功后返回的可操作权限令牌，做下一步操作（如修改密码）时需携带该令牌做验证
     */
    private String token;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public String toString() {
        return "UserToken{" +
                "userId=" + userId +
                ", token='" + token + '\'' +
                '}';
    }
}
